
import { Modal } from 'antd';
import { jumpTo } from '../../jump'
import styles from './index.module.css'

/**
 * 
 */
export function showMenu(navigate) {
    const instance = Modal.info({
        width: '50vw',
        maskClosable: true,
        icon: null,
        title: (
            <div>这是标题！</div>
        ),
        content: (
            <div className={styles.modal_content}>
                <p onClick={click01}>some messages...somemessagessomemessages...somemessagessome messages...somemessagessomemessages...somemessages...</p>
                <p>some messages...some messages...</p>
            </div>
        ),
        // onOk() {
        // },
        footer: (<div>这是底部</div>)
    });

    function click01() {
        instance.destroy();
        jumpTo(navigate, '/main/test01', true, null)
    }
}

